3.32 \(\int (e+f x)^2 (a+b \tanh ^{-1}(c+d x)) \, dx\)

Optimal. Leaf size=120 \[ \frac{(e+f x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 f}+\frac{b f x (d e-c f)}{d^2}+\frac{b (-c f+d e+f)^3 \log (-c-d x+1)}{6 d^3 f}-\frac{b (d e-(c+1) f)^3 \log (c+d x+1)}{6 d^3 f}+\frac{b f^2 (c+d x)^2}{6 d^3} \]

[Out]

(b*f*(d*e - c*f)*x)/d^2 + (b*f^2*(c + d*x)^2)/(6*d^3) + ((e + f*x)^3*(a + b*ArcTanh[c + d*x]))/(3*f) + (b*(d*e
 + f - c*f)^3*Log[1 - c - d*x])/(6*d^3*f) - (b*(d*e - (1 + c)*f)^3*Log[1 + c + d*x])/(6*d^3*f)

________________________________________________________________________________________

Rubi [A]  time = 0.203533, antiderivative size = 120, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.278, Rules used = {6111, 5926, 702, 633, 31} \[ \frac{(e+f x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 f}+\frac{b f x (d e-c f)}{d^2}+\frac{b (-c f+d e+f)^3 \log (-c-d x+1)}{6 d^3 f}-\frac{b (d e-(c+1) f)^3 \log (c+d x+1)}{6 d^3 f}+\frac{b f^2 (c+d x)^2}{6 d^3} \]

Antiderivative was successfully verified.

[In]

Int[(e + f*x)^2*(a + b*ArcTanh[c + d*x]),x]

[Out]

(b*f*(d*e - c*f)*x)/d^2 + (b*f^2*(c + d*x)^2)/(6*d^3) + ((e + f*x)^3*(a + b*ArcTanh[c + d*x]))/(3*f) + (b*(d*e
 + f - c*f)^3*Log[1 - c - d*x])/(6*d^3*f) - (b*(d*e - (1 + c)*f)^3*Log[1 + c + d*x])/(6*d^3*f)

Rule 6111

Int[((a_.) + ArcTanh[(c_) + (d_.)*(x_)]*(b_.))^(p_.)*((e_.) + (f_.)*(x_))^(m_.), x_Symbol] :> Dist[1/d, Subst[
Int[((d*e - c*f)/d + (f*x)/d)^m*(a + b*ArcTanh[x])^p, x], x, c + d*x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] &
& IGtQ[p, 0]

Rule 5926

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))*((d_) + (e_.)*(x_))^(q_.), x_Symbol] :> Simp[((d + e*x)^(q + 1)*(a + b
*ArcTanh[c*x]))/(e*(q + 1)), x] - Dist[(b*c)/(e*(q + 1)), Int[(d + e*x)^(q + 1)/(1 - c^2*x^2), x], x] /; FreeQ
[{a, b, c, d, e, q}, x] && NeQ[q, -1]

Rule 702

Int[((d_) + (e_.)*(x_))^(m_)/((a_) + (c_.)*(x_)^2), x_Symbol] :> Int[PolynomialDivide[(d + e*x)^m, a + c*x^2,
x], x] /; FreeQ[{a, c, d, e}, x] && NeQ[c*d^2 + a*e^2, 0] && IGtQ[m, 1] && (NeQ[d, 0] || GtQ[m, 2])

Rule 633

Int[((d_) + (e_.)*(x_))/((a_) + (c_.)*(x_)^2), x_Symbol] :> With[{q = Rt[-(a*c), 2]}, Dist[e/2 + (c*d)/(2*q),
Int[1/(-q + c*x), x], x] + Dist[e/2 - (c*d)/(2*q), Int[1/(q + c*x), x], x]] /; FreeQ[{a, c, d, e}, x] && NiceS
qrtQ[-(a*c)]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rubi steps

\begin{align*} \int (e+f x)^2 \left (a+b \tanh ^{-1}(c+d x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \left (\frac{d e-c f}{d}+\frac{f x}{d}\right )^2 \left (a+b \tanh ^{-1}(x)\right ) \, dx,x,c+d x\right )}{d}\\ &=\frac{(e+f x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 f}-\frac{b \operatorname{Subst}\left (\int \frac{\left (\frac{d e-c f}{d}+\frac{f x}{d}\right )^3}{1-x^2} \, dx,x,c+d x\right )}{3 f}\\ &=\frac{(e+f x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 f}-\frac{b \operatorname{Subst}\left (\int \left (-\frac{3 f^2 (d e-c f)}{d^3}-\frac{f^3 x}{d^3}+\frac{(d e-c f) \left (d^2 e^2-2 c d e f+3 f^2+c^2 f^2\right )+f \left (3 d^2 e^2-6 c d e f+\left (1+3 c^2\right ) f^2\right ) x}{d^3 \left (1-x^2\right )}\right ) \, dx,x,c+d x\right )}{3 f}\\ &=\frac{b f (d e-c f) x}{d^2}+\frac{b f^2 (c+d x)^2}{6 d^3}+\frac{(e+f x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 f}-\frac{b \operatorname{Subst}\left (\int \frac{(d e-c f) \left (d^2 e^2-2 c d e f+3 f^2+c^2 f^2\right )+f \left (3 d^2 e^2-6 c d e f+\left (1+3 c^2\right ) f^2\right ) x}{1-x^2} \, dx,x,c+d x\right )}{3 d^3 f}\\ &=\frac{b f (d e-c f) x}{d^2}+\frac{b f^2 (c+d x)^2}{6 d^3}+\frac{(e+f x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 f}-\frac{\left (b (d e+f-c f)^3\right ) \operatorname{Subst}\left (\int \frac{1}{1-x} \, dx,x,c+d x\right )}{6 d^3 f}+\frac{\left (b (d e-(1+c) f)^3\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x} \, dx,x,c+d x\right )}{6 d^3 f}\\ &=\frac{b f (d e-c f) x}{d^2}+\frac{b f^2 (c+d x)^2}{6 d^3}+\frac{(e+f x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 f}+\frac{b (d e+f-c f)^3 \log (1-c-d x)}{6 d^3 f}-\frac{b (d e-(1+c) f)^3 \log (1+c+d x)}{6 d^3 f}\\ \end{align*}

Mathematica [A]  time = 0.15685, size = 174, normalized size = 1.45 \[ \frac{2 d x \left (3 a d^2 e^2+b f (3 d e-2 c f)\right )+d^2 f x^2 (6 a d e+b f)+2 a d^3 f^2 x^3+2 b d^3 x \left (3 e^2+3 e f x+f^2 x^2\right ) \tanh ^{-1}(c+d x)-b (c-1) \left (-3 (c-1) d e f+(c-1)^2 f^2+3 d^2 e^2\right ) \log (-c-d x+1)+b (c+1) \left (-3 (c+1) d e f+(c+1)^2 f^2+3 d^2 e^2\right ) \log (c+d x+1)}{6 d^3} \]

Antiderivative was successfully verified.

[In]

Integrate[(e + f*x)^2*(a + b*ArcTanh[c + d*x]),x]

[Out]

(2*d*(3*a*d^2*e^2 + b*f*(3*d*e - 2*c*f))*x + d^2*f*(6*a*d*e + b*f)*x^2 + 2*a*d^3*f^2*x^3 + 2*b*d^3*x*(3*e^2 +
3*e*f*x + f^2*x^2)*ArcTanh[c + d*x] - b*(-1 + c)*(3*d^2*e^2 - 3*(-1 + c)*d*e*f + (-1 + c)^2*f^2)*Log[1 - c - d
*x] + b*(1 + c)*(3*d^2*e^2 - 3*(1 + c)*d*e*f + (1 + c)^2*f^2)*Log[1 + c + d*x])/(6*d^3)

________________________________________________________________________________________

Maple [B]  time = 0.037, size = 477, normalized size = 4. \begin{align*} bf{\it Artanh} \left ( dx+c \right ) e{x}^{2}+{\frac{b{f}^{2}\ln \left ( dx+c+1 \right ) }{6\,{d}^{3}}}-{\frac{b\ln \left ( dx+c+1 \right ){e}^{3}}{6\,f}}+{\frac{bfce}{{d}^{2}}}+{\frac{b\ln \left ( dx+c-1 \right ){e}^{3}}{6\,f}}+{\frac{b{f}^{2}\ln \left ( dx+c-1 \right ) }{6\,{d}^{3}}}+af{x}^{2}e+{\frac{b{f}^{2}{x}^{2}}{6\,d}}+{\it Artanh} \left ( dx+c \right ) xb{e}^{2}+{\frac{b{\it Artanh} \left ( dx+c \right ){e}^{3}}{3\,f}}+{\frac{b{f}^{2}{\it Artanh} \left ( dx+c \right ){x}^{3}}{3}}+ax{e}^{2}+{\frac{a{f}^{2}{x}^{3}}{3}}+{\frac{b{e}^{2}\ln \left ( dx+c+1 \right ) }{2\,d}}+{\frac{b{f}^{2}\ln \left ( dx+c+1 \right ) c}{2\,{d}^{3}}}+{\frac{b{e}^{2}\ln \left ( dx+c-1 \right ) }{2\,d}}+{\frac{a{e}^{3}}{3\,f}}-{\frac{5\,b{f}^{2}{c}^{2}}{6\,{d}^{3}}}+{\frac{b{f}^{2}\ln \left ( dx+c+1 \right ){c}^{3}}{6\,{d}^{3}}}-{\frac{b{f}^{2}\ln \left ( dx+c-1 \right ){c}^{3}}{6\,{d}^{3}}}+{\frac{b{f}^{2}\ln \left ( dx+c-1 \right ){c}^{2}}{2\,{d}^{3}}}-{\frac{2\,b{f}^{2}cx}{3\,{d}^{2}}}+{\frac{bfex}{d}}-{\frac{b{f}^{2}\ln \left ( dx+c-1 \right ) c}{2\,{d}^{3}}}+{\frac{b{f}^{2}\ln \left ( dx+c+1 \right ){c}^{2}}{2\,{d}^{3}}}-{\frac{b\ln \left ( dx+c-1 \right ) c{e}^{2}}{2\,d}}+{\frac{b\ln \left ( dx+c+1 \right ) c{e}^{2}}{2\,d}}-{\frac{bf\ln \left ( dx+c+1 \right ) e}{2\,{d}^{2}}}+{\frac{bf\ln \left ( dx+c-1 \right ) e}{2\,{d}^{2}}}-{\frac{bf\ln \left ( dx+c+1 \right ) ce}{{d}^{2}}}+{\frac{bf\ln \left ( dx+c-1 \right ){c}^{2}e}{2\,{d}^{2}}}-{\frac{bf\ln \left ( dx+c-1 \right ) ce}{{d}^{2}}}-{\frac{bf\ln \left ( dx+c+1 \right ){c}^{2}e}{2\,{d}^{2}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x+e)^2*(a+b*arctanh(d*x+c)),x)

[Out]

1/6/d^3*b*f^2*ln(d*x+c+1)+arctanh(d*x+c)*x*b*e^2-1/6*b/f*ln(d*x+c+1)*e^3+1/d^2*b*f*c*e+1/3*b/f*arctanh(d*x+c)*
e^3+1/6*b/f*ln(d*x+c-1)*e^3+1/6/d^3*b*f^2*ln(d*x+c-1)+a*f*x^2*e+1/6/d*b*f^2*x^2+1/3*b*f^2*arctanh(d*x+c)*x^3+a
*x*e^2+1/3*a*f^2*x^3+1/2/d*e^2*b*ln(d*x+c+1)+1/2/d^3*b*f^2*ln(d*x+c+1)*c+1/2/d*e^2*b*ln(d*x+c-1)+1/3*a/f*e^3-5
/6/d^3*b*f^2*c^2+1/6/d^3*b*f^2*ln(d*x+c+1)*c^3-1/6/d^3*b*f^2*ln(d*x+c-1)*c^3+1/2/d^3*b*f^2*ln(d*x+c-1)*c^2-2/3
*b/d^2*f^2*c*x+b/d*f*e*x-1/2/d^3*b*f^2*ln(d*x+c-1)*c+1/2/d^3*b*f^2*ln(d*x+c+1)*c^2-1/2/d*b*ln(d*x+c-1)*c*e^2+1
/2/d*b*ln(d*x+c+1)*c*e^2-1/2/d^2*b*f*ln(d*x+c+1)*e+1/2/d^2*b*f*ln(d*x+c-1)*e+b*f*arctanh(d*x+c)*e*x^2-1/d^2*b*
f*ln(d*x+c+1)*c*e+1/2/d^2*b*f*ln(d*x+c-1)*c^2*e-1/d^2*b*f*ln(d*x+c-1)*c*e-1/2/d^2*b*f*ln(d*x+c+1)*c^2*e

________________________________________________________________________________________

Maxima [A]  time = 0.96941, size = 279, normalized size = 2.32 \begin{align*} \frac{1}{3} \, a f^{2} x^{3} + a e f x^{2} + \frac{1}{2} \,{\left (2 \, x^{2} \operatorname{artanh}\left (d x + c\right ) + d{\left (\frac{2 \, x}{d^{2}} - \frac{{\left (c^{2} + 2 \, c + 1\right )} \log \left (d x + c + 1\right )}{d^{3}} + \frac{{\left (c^{2} - 2 \, c + 1\right )} \log \left (d x + c - 1\right )}{d^{3}}\right )}\right )} b e f + \frac{1}{6} \,{\left (2 \, x^{3} \operatorname{artanh}\left (d x + c\right ) + d{\left (\frac{d x^{2} - 4 \, c x}{d^{3}} + \frac{{\left (c^{3} + 3 \, c^{2} + 3 \, c + 1\right )} \log \left (d x + c + 1\right )}{d^{4}} - \frac{{\left (c^{3} - 3 \, c^{2} + 3 \, c - 1\right )} \log \left (d x + c - 1\right )}{d^{4}}\right )}\right )} b f^{2} + a e^{2} x + \frac{{\left (2 \,{\left (d x + c\right )} \operatorname{artanh}\left (d x + c\right ) + \log \left (-{\left (d x + c\right )}^{2} + 1\right )\right )} b e^{2}}{2 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)^2*(a+b*arctanh(d*x+c)),x, algorithm="maxima")

[Out]

1/3*a*f^2*x^3 + a*e*f*x^2 + 1/2*(2*x^2*arctanh(d*x + c) + d*(2*x/d^2 - (c^2 + 2*c + 1)*log(d*x + c + 1)/d^3 +
(c^2 - 2*c + 1)*log(d*x + c - 1)/d^3))*b*e*f + 1/6*(2*x^3*arctanh(d*x + c) + d*((d*x^2 - 4*c*x)/d^3 + (c^3 + 3
*c^2 + 3*c + 1)*log(d*x + c + 1)/d^4 - (c^3 - 3*c^2 + 3*c - 1)*log(d*x + c - 1)/d^4))*b*f^2 + a*e^2*x + 1/2*(2
*(d*x + c)*arctanh(d*x + c) + log(-(d*x + c)^2 + 1))*b*e^2/d

________________________________________________________________________________________

Fricas [B]  time = 2.07999, size = 549, normalized size = 4.58 \begin{align*} \frac{2 \, a d^{3} f^{2} x^{3} +{\left (6 \, a d^{3} e f + b d^{2} f^{2}\right )} x^{2} + 2 \,{\left (3 \, a d^{3} e^{2} + 3 \, b d^{2} e f - 2 \, b c d f^{2}\right )} x +{\left (3 \,{\left (b c + b\right )} d^{2} e^{2} - 3 \,{\left (b c^{2} + 2 \, b c + b\right )} d e f +{\left (b c^{3} + 3 \, b c^{2} + 3 \, b c + b\right )} f^{2}\right )} \log \left (d x + c + 1\right ) -{\left (3 \,{\left (b c - b\right )} d^{2} e^{2} - 3 \,{\left (b c^{2} - 2 \, b c + b\right )} d e f +{\left (b c^{3} - 3 \, b c^{2} + 3 \, b c - b\right )} f^{2}\right )} \log \left (d x + c - 1\right ) +{\left (b d^{3} f^{2} x^{3} + 3 \, b d^{3} e f x^{2} + 3 \, b d^{3} e^{2} x\right )} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )}{6 \, d^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)^2*(a+b*arctanh(d*x+c)),x, algorithm="fricas")

[Out]

1/6*(2*a*d^3*f^2*x^3 + (6*a*d^3*e*f + b*d^2*f^2)*x^2 + 2*(3*a*d^3*e^2 + 3*b*d^2*e*f - 2*b*c*d*f^2)*x + (3*(b*c
 + b)*d^2*e^2 - 3*(b*c^2 + 2*b*c + b)*d*e*f + (b*c^3 + 3*b*c^2 + 3*b*c + b)*f^2)*log(d*x + c + 1) - (3*(b*c -
b)*d^2*e^2 - 3*(b*c^2 - 2*b*c + b)*d*e*f + (b*c^3 - 3*b*c^2 + 3*b*c - b)*f^2)*log(d*x + c - 1) + (b*d^3*f^2*x^
3 + 3*b*d^3*e*f*x^2 + 3*b*d^3*e^2*x)*log(-(d*x + c + 1)/(d*x + c - 1)))/d^3

________________________________________________________________________________________

Sympy [A]  time = 8.34828, size = 369, normalized size = 3.08 \begin{align*} \begin{cases} a e^{2} x + a e f x^{2} + \frac{a f^{2} x^{3}}{3} + \frac{b c^{3} f^{2} \operatorname{atanh}{\left (c + d x \right )}}{3 d^{3}} - \frac{b c^{2} e f \operatorname{atanh}{\left (c + d x \right )}}{d^{2}} + \frac{b c^{2} f^{2} \log{\left (\frac{c}{d} + x + \frac{1}{d} \right )}}{d^{3}} - \frac{b c^{2} f^{2} \operatorname{atanh}{\left (c + d x \right )}}{d^{3}} + \frac{b c e^{2} \operatorname{atanh}{\left (c + d x \right )}}{d} - \frac{2 b c e f \log{\left (\frac{c}{d} + x + \frac{1}{d} \right )}}{d^{2}} + \frac{2 b c e f \operatorname{atanh}{\left (c + d x \right )}}{d^{2}} - \frac{2 b c f^{2} x}{3 d^{2}} + \frac{b c f^{2} \operatorname{atanh}{\left (c + d x \right )}}{d^{3}} + b e^{2} x \operatorname{atanh}{\left (c + d x \right )} + b e f x^{2} \operatorname{atanh}{\left (c + d x \right )} + \frac{b f^{2} x^{3} \operatorname{atanh}{\left (c + d x \right )}}{3} + \frac{b e^{2} \log{\left (\frac{c}{d} + x + \frac{1}{d} \right )}}{d} - \frac{b e^{2} \operatorname{atanh}{\left (c + d x \right )}}{d} + \frac{b e f x}{d} + \frac{b f^{2} x^{2}}{6 d} - \frac{b e f \operatorname{atanh}{\left (c + d x \right )}}{d^{2}} + \frac{b f^{2} \log{\left (\frac{c}{d} + x + \frac{1}{d} \right )}}{3 d^{3}} - \frac{b f^{2} \operatorname{atanh}{\left (c + d x \right )}}{3 d^{3}} & \text{for}\: d \neq 0 \\\left (a + b \operatorname{atanh}{\left (c \right )}\right ) \left (e^{2} x + e f x^{2} + \frac{f^{2} x^{3}}{3}\right ) & \text{otherwise} \end{cases} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)**2*(a+b*atanh(d*x+c)),x)

[Out]

Piecewise((a*e**2*x + a*e*f*x**2 + a*f**2*x**3/3 + b*c**3*f**2*atanh(c + d*x)/(3*d**3) - b*c**2*e*f*atanh(c +
d*x)/d**2 + b*c**2*f**2*log(c/d + x + 1/d)/d**3 - b*c**2*f**2*atanh(c + d*x)/d**3 + b*c*e**2*atanh(c + d*x)/d
- 2*b*c*e*f*log(c/d + x + 1/d)/d**2 + 2*b*c*e*f*atanh(c + d*x)/d**2 - 2*b*c*f**2*x/(3*d**2) + b*c*f**2*atanh(c
 + d*x)/d**3 + b*e**2*x*atanh(c + d*x) + b*e*f*x**2*atanh(c + d*x) + b*f**2*x**3*atanh(c + d*x)/3 + b*e**2*log
(c/d + x + 1/d)/d - b*e**2*atanh(c + d*x)/d + b*e*f*x/d + b*f**2*x**2/(6*d) - b*e*f*atanh(c + d*x)/d**2 + b*f*
*2*log(c/d + x + 1/d)/(3*d**3) - b*f**2*atanh(c + d*x)/(3*d**3), Ne(d, 0)), ((a + b*atanh(c))*(e**2*x + e*f*x*
*2 + f**2*x**3/3), True))

________________________________________________________________________________________

Giac [B]  time = 1.67666, size = 597, normalized size = 4.97 \begin{align*} \frac{b d^{3} f^{2} x^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 2 \, a d^{3} f^{2} x^{3} + 3 \, b d^{3} f x^{2} e \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 6 \, a d^{3} f x^{2} e + b d^{2} f^{2} x^{2} + b c^{3} f^{2} \log \left (d x + c + 1\right ) + 3 \, b c^{2} d f e \log \left (d x + c - 1\right ) - b c^{3} f^{2} \log \left (-d x - c + 1\right ) - 3 \, b c^{2} d f e \log \left (-d x - c - 1\right ) + 3 \, b d^{3} x e^{2} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) - 4 \, b c d f^{2} x + 6 \, a d^{3} x e^{2} + 6 \, b d^{2} f x e + 3 \, b c^{2} f^{2} \log \left (d x + c + 1\right ) + 3 \, b c d^{2} e^{2} \log \left (d x + c + 1\right ) - 3 \, b c d^{2} e^{2} \log \left (d x + c - 1\right ) - 6 \, b c d f e \log \left (d x + c - 1\right ) + 3 \, b c^{2} f^{2} \log \left (-d x - c + 1\right ) - 6 \, b c d f e \log \left (-d x - c - 1\right ) + 3 \, b c f^{2} \log \left (d x + c + 1\right ) + 3 \, b d^{2} e^{2} \log \left (d x + c + 1\right ) + 3 \, b d^{2} e^{2} \log \left (d x + c - 1\right ) + 3 \, b d f e \log \left (d x + c - 1\right ) - 3 \, b c f^{2} \log \left (-d x - c + 1\right ) - 3 \, b d f e \log \left (-d x - c - 1\right ) + b f^{2} \log \left (d x + c + 1\right ) + b f^{2} \log \left (-d x - c + 1\right )}{6 \, d^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)^2*(a+b*arctanh(d*x+c)),x, algorithm="giac")

[Out]

1/6*(b*d^3*f^2*x^3*log(-(d*x + c + 1)/(d*x + c - 1)) + 2*a*d^3*f^2*x^3 + 3*b*d^3*f*x^2*e*log(-(d*x + c + 1)/(d
*x + c - 1)) + 6*a*d^3*f*x^2*e + b*d^2*f^2*x^2 + b*c^3*f^2*log(d*x + c + 1) + 3*b*c^2*d*f*e*log(d*x + c - 1) -
 b*c^3*f^2*log(-d*x - c + 1) - 3*b*c^2*d*f*e*log(-d*x - c - 1) + 3*b*d^3*x*e^2*log(-(d*x + c + 1)/(d*x + c - 1
)) - 4*b*c*d*f^2*x + 6*a*d^3*x*e^2 + 6*b*d^2*f*x*e + 3*b*c^2*f^2*log(d*x + c + 1) + 3*b*c*d^2*e^2*log(d*x + c
+ 1) - 3*b*c*d^2*e^2*log(d*x + c - 1) - 6*b*c*d*f*e*log(d*x + c - 1) + 3*b*c^2*f^2*log(-d*x - c + 1) - 6*b*c*d
*f*e*log(-d*x - c - 1) + 3*b*c*f^2*log(d*x + c + 1) + 3*b*d^2*e^2*log(d*x + c + 1) + 3*b*d^2*e^2*log(d*x + c -
 1) + 3*b*d*f*e*log(d*x + c - 1) - 3*b*c*f^2*log(-d*x - c + 1) - 3*b*d*f*e*log(-d*x - c - 1) + b*f^2*log(d*x +
 c + 1) + b*f^2*log(-d*x - c + 1))/d^3